package org.x.user.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 律师信息表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Table(value = "lawyer")
public class LawyerEntity {

    /**
     * 律师ID
     */
    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 关联用户ID
     */
    @Column(value = "user_id")
    private Long userId;

    /**
     * 律师执照号
     */
    @Column(value = "license_no")
    private String licenseNo;

    /**
     * 专业领域
     */
    @Column(value = "specialty")
    private String specialty;

    /**
     * 执业年限
     */
    @Column(value = "years_of_practice")
    private Integer yearsOfPractice;

    /**
     * 案件成功率
     */
    @Column(value = "success_rate")
    private BigDecimal successRate;

    /**
     * 个人介绍
     */
    @Column(value = "introduction")
    private String introduction;

    /**
     * 服务区域
     */
    @Column(value = "service_area")
    private String serviceArea;

    /**
     * 是否认证(0:未认证,1:已认证)
     */
    @Column(value = "is_certified")
    private Integer isCertified;

    /**
     * 认证时间
     */
    @Column(value = "certification_time")
    private Date certificationTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getLicenseNo() {
        return licenseNo;
    }

    public void setLicenseNo(String licenseNo) {
        this.licenseNo = licenseNo;
    }

    public String getSpecialty() {
        return specialty;
    }

    public void setSpecialty(String specialty) {
        this.specialty = specialty;
    }

    public Integer getYearsOfPractice() {
        return yearsOfPractice;
    }

    public void setYearsOfPractice(Integer yearsOfPractice) {
        this.yearsOfPractice = yearsOfPractice;
    }

    public BigDecimal getSuccessRate() {
        return successRate;
    }

    public void setSuccessRate(BigDecimal successRate) {
        this.successRate = successRate;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getServiceArea() {
        return serviceArea;
    }

    public void setServiceArea(String serviceArea) {
        this.serviceArea = serviceArea;
    }

    public Integer getIsCertified() {
        return isCertified;
    }

    public void setIsCertified(Integer isCertified) {
        this.isCertified = isCertified;
    }

    public Date getCertificationTime() {
        return certificationTime;
    }

    public void setCertificationTime(Date certificationTime) {
        this.certificationTime = certificationTime;
    }
}
